eed8b62d8fc1a99a24064535402685328f189f6c,MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/labs/SpaceStationLocationActivity.java,SpaceStationLocationActivity,onPause,#,122

Before Change


    public void onPause() {
        super.onPause();
        mapView.onPause();
        handler.removeCallbacks(runnable);
    }

    @Override

After Change


        mapView.onPause();
        // When the user leaves the activity, there is no need in calling the API since the map
        // isn't in view.
        if (handler != null && runnable != null) {
            handler.removeCallbacks(runnable);
        }
    }